home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / diag / ccs103.zip / CCS.DOC < prev    next >
Text File  |  1992-02-20  |  5KB  |  155 lines

  1. CCS - Configuration Control System Version 1.2
  2. Freeware Copyright (C) 1991
  3.  
  4. Date: Feb XXX 1991
  5. Author: Soh Kok Hong
  6.  
  7.  
  8. The Configuration Control System allows the user to store different options
  9. in his CONFIG.SYS and AUTOEXEC.BAT files.  At boot up time, the user can
  10. select the option he/she wishes to boot with.  The system consists of the
  11. following files:
  12.  
  13.      a.   CCS.CTL       - the character device driver
  14.      b.   OPTPICK.COM   - used to get the option picked by the user
  15.      c.   CCS.DOC       - the documentation file
  16.  
  17. Example CONFIG.SYS file
  18.    ... Lines common to all configurations
  19.    DEVICE=CCS.CTL [wait] [def]
  20.    DEVICE=OPTION B [descriptive text for option B]
  21.    ... Lines of configuration B
  22.    DEVICE=ENDOPT
  23.    ... Lines common to all configurations
  24.    DEVICE=OPTION A [descriptive text for option A]
  25.    ... Lines of configuration A
  26.    DEVICE=ENDOPT
  27.    ... Lines common to all configurations
  28.    DEVICE=OPTION C [descriptive text for option C]
  29.    ... Lines of configuration C
  30.    DEVICE=ENDOPT
  31.    ... Lines common to all configurations
  32.    DEVICE=DONECCS
  33.  
  34. Note: Text within square brackets are optional.
  35.       The option letter of OPTION must be present.
  36.  
  37. Example AUTOEXEC.BAT
  38.    ... Lines common to all configurations
  39.    OPTPICK
  40.    if "%CCS103%"=="" goto noconfig
  41.    goto config%CCS103%
  42.    :noconfig
  43.    echo cannot find configuration, check autoexec.bat and config.sys
  44.    goto done
  45.    
  46.    :configA
  47.    ... Lines for configuration A
  48.    GOTO done
  49.    :configB
  50.    ... Lines for configuration B
  51.    GOTO done
  52.    :configC
  53.    ... Lines for configuration C
  54.    :done
  55.    ... Lines common to all configurations
  56.  
  57. [wait] is the number of seconds to wait for a key to be hit before the
  58. default configuration is used to boot up the system.  If [wait] is omitted,
  59. the menu is put up automatically when the machine boots up.
  60.  
  61. [def] is a single alphabetic character for the default menu item selection.
  62. If [def] is too large, too small or omitted, the default selection will be
  63. "A".
  64.  
  65. Descriptive text can be placed after DEVICE=OPTION so that the menu
  66. can display a description of that configuration option.
  67.  
  68. After CCS.CTL is installed as a character device driver, the option selected
  69. by the user is stored in its memory.  The device sets itself up with the
  70. filename "CCS103XX".  OPTPICK.COM can then be used to access the option
  71. selected by the user by reading the file "CCS103XX".
  72. OPTPICK.COM sets the environment variable CCS103 to the letter option
  73. selected by the user during the loading of CONFIG.SYS
  74.  
  75. Limitations:
  76.  
  77. 1.   52 characters is the longest string which can be used in the
  78.      descriptive text in the DEVICE=OPTION line (excluding DEVICE=OPTION).
  79.      Longer strings will be truncated.
  80.  
  81. 2.   Can handle 100 lines per option at most.
  82.  
  83.  
  84. Usage:
  85.  
  86. I place no restrictions on the use and distribution of this software.  But
  87. neither do I place any guarantees that it will work well on your machine.
  88. I have not made this a shareware product because I cannot guarantee I
  89. can support it well.  So, I have made it a freeware product and provided
  90. the source code for it.  However, donations would be very much
  91. appreciated (maybe $10).  You could mail any donations to:
  92.  
  93.     Kok Hong Soh
  94.     Bendix/King Radio Corp
  95.     400, N. Rogers Road, MD 43
  96.     Olathe, KS 66062
  97.     USA
  98.  
  99. Soh is my last name, although I have placed my last name first in the
  100. startup messages for the programs.  Putting the last name first is the
  101. custom in my country (Singapore).
  102.  
  103.  
  104. Update information:
  105.  
  106. Version 1.00    My 1st attempt - worked fairly OK but documentation was not
  107.         good.
  108.  
  109. Version 1.01    Improved on OPTPICK.COM so that it would return errorlevel 0
  110.         if CCS.CTL is not installed.  Remembered to include
  111.         sample autoexec.bat and config.sys file in package!
  112.         Documentation still stinks!
  113.  
  114. Version 1.02    Major revisions:
  115.  
  116.         1.  Changed marking system in config.sys to allow common
  117.         configuration lines between options
  118.  
  119.         2.  optpick.com now sets environment variable CCS102 to
  120.         the selected option.  Any program can now access the current
  121.         option by reading the environment variable CCS102.
  122.  
  123.         3.  Made "Unrecognized command in CONFIG.SYS" message
  124.         disappear for DOS ver 2.x and 3.x (hopefull).  This was
  125.         a major sticking point for many users, although the
  126.         message was harmless.  I tried to find a way around the
  127.         problem when I downloaded PC Magazine's CONFIG.CTL
  128.         utility and wrote a device driver to look at the
  129.         config.sys buffer generated by PC Mag's CONFIG.CTL.  Had
  130.         to do much testing with DOS ver 3.30 before I found the
  131.         correct way to pad the empty areas.
  132.  
  133.         4.  Corrected error in sample config.sys file - I forgot
  134.         to add the /p option to the shell=command.com lines.
  135.         The autoexec.bat file will not be executed if that option
  136.         is not there.
  137.  
  138.         5.  Documentation improved to ask for donation!  But it is
  139.         still bad - you get what you paid for!
  140.  
  141. Version 1.03    Major revisions:
  142.  
  143.         1.  Allowed user-selected option letters to be set in
  144.         CONFIG.SYS.  This made removing options from the CONFIG.SYS
  145.         easier.
  146.  
  147.         2.  Device driver will not be loaded when error is detected
  148.         in CONFIG.SYS.
  149.  
  150.         3.  Number of options is now limited to 17 - I realized
  151.         that the original 26 was too much to be displayed on a
  152.         screen without scrolling.  As it is unlikely that anyone
  153.         will use more than 17 options, I decided not to implement
  154.         scrolling in this version.
  155.